Adding New Disk Drive
Hi,
We have been using qemu for one of our Windows Server 2003 systems successfully since previous month. Below is the script I use to start qemu:
$ cat /usr/local/sbin/start-windows #!/bin/sh
# Install KVM kernel modules.
modprobe kvm
modprobe kvm-intel
# Start qemu.
SDL_VIDEO_X11_DGAMOUSE=0 \
/usr/local/bin/qemu-system-x86_64 \
-cdrom /dev/cdrom \
-hda /home/windows/disk-qcow2-20g.img \
-hdb /home/windows/disk-qcow2-40g.img \
-localtime -m 1536 -smp 2 -k tr \
-usb -usbdevice tablet \
-net nic -net tapLast week we started to suffer from low disk space and to solve this problem we purchased a Philips SPE3000 External SATA disk with USB connectivity. And connected it to the related machine with below configuration:
$ ls -l /home/windows/ total 60068704 lrwxrwxrwx 1 windows windows 28 2008-07-30 16:18 disk-qcow2-200g.img -> /bak/img/disk-qcow2-200g.img -rw-r--r-- 1 windows windows 20957474816 2008-07-30 16:44 disk-qcow2-20g.img -rw-r--r-- 1 windows windows 40492793856 2008-07-30 16:44 disk-qcow2-40g.img
# mount | grep /bak /dev/sdb1 on /bak type ext3 (rw,nosuid,nodev,noatime)
And I appended a "-hdc /home/windows/disk-qcow2-200g.img" line to /usr/local/sbin/start-windows script and restarted qemu. But I saw that drive doesn't appear in the windows side. (I can see it neither in "My Computer", nor in "My Computer > Manage > Disk Management" window.) I also tried using "-drive file=/home/windows/disk-qcow2-200g.img,if=scsi" but nothing changed.
Any ideas what I might be missing? Any kind of help will be really appreciated.
Regards.
Quoted 7 lines · Volkan YAZICI
$ cat /usr/local/sbin/start-windows #!/bin/sh# Install KVM kernel modules.
modprobe kvm
modprobe kvm-intel
Quoted 9 lines
# Start qemu.
SDL_VIDEO_X11_DGAMOUSE=0 \
/usr/local/bin/qemu-system-x86_64 \
-cdrom /dev/cdrom \
-hda /home/windows/disk-qcow2-20g.img \
-hdb /home/windows/disk-qcow2-40g.img \
-localtime -m 1536 -smp 2 -k tr \
-usb -usbdevice tablet \
-net nic -net tapBTW, replacing "-hdb /home/windows/disk-qcow2-40g.img" line with "-hdb /home/windows/disk-qcow2-200g.img" didn't work too. I created image using below command:
$ /usr/local/bin/qemu-img create -f qcow2 /bak/img/disk-qcow2-200g.img 200G
Regards.
Quoted 5 lines
BTW, replacing "-hdb
/home/windows/disk-qcow2-40g.img" line with "-hdb/home/windows/disk-qcow2-200g.img" didn't work too. I created image using below command:$ /usr/local/bin/qemu-img create -f qcow2 /bak/img/disk-qcow2-200g.img 200G
You need to set it up inside Windows, I do remember that there is something like a disk management utility inside the administrative tools, but I forgot it's name
Quoted 9 lines · On Wed, 30 Jul 2008, [email protected] writes:
Quoted 5 lines
BTW, replacing "-hdb
/home/windows/disk-qcow2-40g.img" line with "-hdb/home/windows/disk-qcow2-200g.img" didn't work too. I created image using below command:$ /usr/local/bin/qemu-img create -f qcow2 /bak/img/disk-qcow2-200g.img 200GYou need to set it up inside Windows, I do remember that there is something like a disk management utility inside the administrative tools, but I forgot it's name
I mentioned about this in my previous post. When you right click to "My Computer" and select "Manage", and then click on to "Disk Management" in the opened window you see the available disks. But the new disk I introduced wasn't get displayed there.
Regards.
Quoted 7 lines · Volkan YAZICI
Quoted 6 lines · On Wed, 30 Jul 2008, [email protected] writes:
Quoted 5 lines
BTW, replacing "-hdb
/home/windows/disk-qcow2-40g.img" line with "-hdb/home/windows/disk-qcow2-200g.img" didn't work too. I created image using below command:$ /usr/local/bin/qemu-img create -f qcow2 /bak/img/disk-qcow2-200g.img 200G
Quoted 8 lines
Quoted 3 lines
You need to set it up inside Windows, I do remember that there is something like a disk management utility inside the administrative tools, but I forgot it's name
I mentioned about this in my previous post. When you right click to "My Computer" and select "Manage", and then click on to "Disk Management" in the opened window you see the available disks. But the new disk I introduced wasn't get displayed there.
If you go under qemu monitor (ctrl-alt-2) and type "info block", what do you have ?
Laurent
----------------------- Laurent Vivier ---------------------- "The best way to predict the future is to invent it."
- Alan Kay
Quoted 2 lines · Laurent Vivier
If you go under qemu monitor (ctrl-alt-2) and type "info block", what do you have ?
QEMU 0.9.1 monitor - type 'help' for more information (qemu) info block
ide1-cd0: type=cdrom removable=1 locked=0 file=/dev/cdrom ro=0 drv=host_device
ide0-hd0: type=hd removable=0 file=/home/windows/disk-qcow2-20g.img ro=0 drv=qcow2
ide0-hd1: type=hd removable=0 file=/home/windows/disk-qcow2-40g.img ro=0 drv=qcow2
floppy0: type=floppy removable=1 locked=0 [not inserted]
sd0: type=floppy removable=1 locked=0 [not inserted]
Above output received from a qemu instance started using below command:
SDL_VIDEO_X11_DGAMOUSE=0 \
/usr/local/bin/qemu-system-x86_64 \
-cdrom /dev/cdrom \
-hda /home/windows/disk-qcow2-20g.img \
-hdb /home/windows/disk-qcow2-40g.img \
-hdc /home/windows/disk-qcow2-200g.img \
-localtime -m 1536 -smp 2 -k tr \
-usb -usbdevice tablet \
-net nic -net tapRegards.