* "disk" option in hvm config file
@ 2011-05-28 7:31 Bei Guan
2011-06-06 14:10 ` Stefano Stabellini
0 siblings, 1 reply; 2+ messages in thread
From: Bei Guan @ 2011-05-28 7:31 UTC (permalink / raw)
To: xen-devel; +Cc: Andrei Warkentin
[-- Attachment #1.1: Type: text/plain, Size: 245 bytes --]
Hi,
Does Xen HVM support the the "disk" option that can attach a FAT partion or
a floppy image like the qemu? In qemu, we can do it with the option "-hda
fat:/root/tmp/" and "-fda /root/floopy.img". Any reply is appreciated.
Thanks,
Bei Guan
[-- Attachment #1.2: Type: text/html, Size: 391 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "disk" option in hvm config file
2011-05-28 7:31 "disk" option in hvm config file Bei Guan
@ 2011-06-06 14:10 ` Stefano Stabellini
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Stabellini @ 2011-06-06 14:10 UTC (permalink / raw)
To: Bei Guan; +Cc: xen-devel@lists.xensource.com, Andrei, Warkentin
[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]
On Sat, 28 May 2011, Bei Guan wrote:
> Hi,
>
> Does Xen HVM support the the "disk" option that can attach a FAT partion or a floppy image like the qemu? In qemu, we can do it with the option "-hda
> fat:/root/tmp/" and "-fda /root/floopy.img". Any reply is appreciated.
Unfortunately qemu-xen doesn't understand this option from xenstore so
it cannot be done from the VM config file.
However if you manually add "-fda /root/floopy.img" to the qemu command
line options, it might just work (I haven't tried this so I am not sure
though).
You can try this in two ways:
- if you are using xl, you can add the following line to the VM config
file:
device_model_args = ['-fda', '/root/floopy.img']
this would cause '-fda' and '/root/floopy.img' to be added to the qemu
command line.
- modify the VM config file to point to a wrapper script
for the device model:
device_model_override = '/path/to/wrapper_script'
the wrapper script is just a bash script that executes qemu adding '-fda
/root/floopy.img' to the command line arguments.
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-06 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-28 7:31 "disk" option in hvm config file Bei Guan
2011-06-06 14:10 ` Stefano Stabellini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).