|
From: | Mike Lovell |
Subject: | Re: [Qemu-discuss] qemu usage help |
Date: | Mon, 18 Jun 2012 16:55:24 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
On 06/16/2012 12:39 AM, beyond.hack wrote:
thanks for your reply sir, re-adding the list as a cc you can specify the virtual disk a number of ways. the easiest would probably be to add a '-hda /path/to/virtual/disk' to the command line. depending on how the linux kernel in the guest is configured, it might show up as /dev/hda or /dev/sda. if its from a recent linux distribution, it will probably show up as sda to the guest. you also could do '-drive file=/path/to/virtual/disk' which will have the same effect but is a more extensible way of specifying the disk. you could do '-drive file=/path/to/virtual/disk,if=virtio' if you wanted to have the guest see the disk as a virtio disk and in this case the guest would see the disk as /dev/vda. '-drive file=/path/to/virtual/disk,if=scsi' should always result in the disk showing up as /dev/sda and use a scsi interface. the man page for qemu-system-i386 should have many more details. in the above examples, /path/to/virtual/disk should point to something the guest can use as a virtual disk. it should *not* point to the block device that holds your host's system. the details in your emails are a little ambiguous and it almost sounds like you are trying to have the guest use the same root filesystem as your host. this is not what you want. you should probably have a file somewhere that should act as a virtual disk somewhere. hope that helps. mike |
[Prev in Thread] | Current Thread | [Next in Thread] |