Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Defined XML:
- virt-install \
- --connect qemu:///system \
- --hvm \
- --virt-type kvm \
- --network network=virt-net2,model=virtio,mac=52:54:00:b8:0b:ef \
- --noautoconsole \
- --name barry.powercraft.nl \
- --ram 1024 \
- --vcpus=2 \
- --vnc \
- --os-type linux \
- --os-variant debianwheezy \
- --noreboot \
- --cdrom /images/debian-live-7.5.0-amd64-lxde-desktop.iso \
- --nodisks \
- --livecd
- After booting the VM the network is changed like:
- <domain type='kvm' id='13'>
- <name>barry.powercraft.nl</name>
- <uuid>5a59268b-48ba-af93-ac9d-bfb809cb939e</uuid>
- <memory unit='KiB'>1048576</memory>
- <currentMemory unit='KiB'>1048576</currentMemory>
- <vcpu placement='static'>2</vcpu>
- <resource>
- <partition>/machine</partition>
- </resource>
- <os>
- <type arch='x86_64' machine='pc-1.1'>hvm</type>
- <boot dev='cdrom'/>
- </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/bin/kvm</emulator>
- <disk type='file' device='cdrom'>
- <driver name='qemu' type='raw'/>
- <source file='/images/debian-live-7.5.0-amd64-lxde-desktop.iso'/>
- <backingStore/>
- <target dev='hdc' bus='ide'/>
- <readonly/>
- <alias name='ide0-1-0'/>
- <address type='drive' controller='0' bus='1' target='0' unit='0'/>
- </disk>
- <controller type='usb' index='0'>
- <alias name='usb0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
- </controller>
- <controller type='pci' index='0' model='pci-root'>
- <alias name='pci.0'/>
- </controller>
- <controller type='ide' index='0'>
- <alias name='ide0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
- </controller>
- <interface type='bridge'>
- <mac address='52:54:00:b8:0b:ef'/>
- <source bridge='br0'/>
- <vlan>
- <tag id='2'/>
- </vlan>
- <virtualport type='openvswitch'>
- <parameters interfaceid='8215f0d0-b45f-4565-a492-4d6d491e7c0c'/>
- </virtualport>
- <target dev='vnet0'/>
- <model type='virtio'/>
- <alias name='net0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
- </interface>
- <serial type='pty'>
- <source path='/dev/pts/1'/>
- <target port='0'/>
- <alias name='serial0'/>
- </serial>
- <console type='pty' tty='/dev/pts/1'>
- <source path='/dev/pts/1'/>
- <target type='serial' port='0'/>
- <alias name='serial0'/>
- </console>
- <input type='tablet' bus='usb'>
- <alias name='input0'/>
- </input>
- <input type='mouse' bus='ps2'/>
- <input type='keyboard' bus='ps2'/>
- <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
- <listen type='address' address='127.0.0.1'/>
- </graphics>
- <video>
- <model type='cirrus' vram='9216' heads='1'/>
- <alias name='video0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
- </video>
- <memballoon model='virtio'>
- <alias name='balloon0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
- </memballoon>
- </devices>
- <seclabel type='none'/>
- </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement