Tait Clarridge pisze: > On Mon, 2009-09-28 at 22:17 +0200, For at ll wrote: > >> Tait Clarridge pisze: >> >>> On Mon, 2009-09-28 at 08:05 +0200, For at ll wrote: >>> >>> >>>> Hi, >>>> >>>> If I create a guest which uses (hvm) can I add access to physical device >>>> like cdrom? >>>> >>>> Regards, >>>> >>>> For at ll >>>> >>>> >>> Yes, you are able to add a CDROM device to your guest. >>> >>> You can add either a physical drive or an ISO image. Are you using >>> virt-manager or just config files at the command line? >>> >>> Tait >>> >>> _______________________________________________ >>> CentOS-virt mailing list >>> CentOS-virt at centos.org >>> http://lists.centos.org/mailman/listinfo/centos-virt >>> >>> >> Hi, >> >> I using only a comman line, my centos server have only text console >> without a X server. I used a virsh. >> >> For at ll >> > > Can you post the config file for the guest? > > _______________________________________________ > CentOS-virt mailing list > CentOS-virt at centos.org > http://lists.centos.org/mailman/listinfo/centos-virt > This is a guest config file with xml and native format: cat win2khvm.xml <domain type='xen' id='50'> <name>win2k8-hvm</name> <uuid>c53ac13f-d32f-9934-8c0b-a8728fb52f19</uuid> <memory>1048576</memory> <currentMemory>1048576</currentMemory> <vcpu>1</vcpu> <os> <type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/lib/xen/bin/qemu-dm</emulator> <disk type='block' device='disk'> <driver name='phy'/> <source dev='/dev/vol1/win2k8'/> <target dev='hda' bus='ide'/> </disk> <disk type='block' device='cdrom'> <driver name='phy'/> <source dev='/dev/cdrom'/> <target dev='hdc' bus='ide'/> <readonly/> </disk> <interface type='bridge'> <mac address='00:16:36:2a:e4:15'/> <source bridge='eth0'/> <script path='/etc/xen/scripts/vif-bridge'/> <target dev='vif50.0'/> </interface> <serial type='pty'> <source path='/dev/pts/2'/> <target port='0'/> </serial> <console type='pty' tty='/dev/pts/2'> <source path='/dev/pts/2'/> <target port='0'/> </console> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/> </devices> </domain> Native config: cat win2k8.cfg name = "win2k8-hvm" uuid = "c53ac13f-d32f-9934-8c0b-a8728fb52f19" maxmem = 1024 memory = 1024 vcpus = 1 builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" boot = "c" pae = 1 acpi = 1 apic = 1 localtime = 0 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" device_model = "/usr/lib/xen/bin/qemu-dm" vfb = [ "type=vnc,vncunused=1,keymap=en-us" ] disk = [ "phy:/dev/vol1/win2k8,hda,w", "phy:/dev/cdrom,hdc:cdrom,r" ] vif = [ "mac=00:16:36:2a:e4:15,bridge=eth0,script=vif-bridge,vifname=vif50.0" ] parallel = "none" serial = "pty"