← Back to team overview

sslug-teknik team mailing list archive

Re: KVM med base image

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010-12-21 14:06, Kenni Lund wrote:
> Ok, prøv lige at poste den fulde dumpxml for NewServer.
<domain type='kvm'>
  <name>NewServer</name>
  <uuid>a3f058d3-4df2-603c-715b-04ae705a8683</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <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/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/NewServer.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:5c:5d:99'/>
      <source network='default'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ac97'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
    </sound>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
    </memballoon>
  </devices>
</domain>


Og en diff mellem UbuntuWebServerBase (som kan starte) og NewServer:
robert-desktop:~ $ diff UbuntuWebServerBase.xml NewServer.xml
2,3c2,3
<   <name>UbuntuWebServerBase</name>
<   <uuid>b48c5e46-8f4b-a699-c2d2-72a4af2e1c3e</uuid>
- ---
> <name>NewServer</name>
> <uuid>a3f058d3-4df2-603c-715b-04ae705a8683</uuid>
24c24
<       <source file='/var/lib/libvirt/images/UbuntuWebServerBase.img'/>
- ---
> <source file='/var/lib/libvirt/images/NewServer.img'/>
38c38
<       <mac address='52:54:00:19:86:61'/>
- ---
> <mac address='52:54:00:5c:5d:99'/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAk0Qp9UACgkQzDMeisFqGZYcrQCY+SZWLNcl7R5j416sOpqzidxQ
9gCfZ9xrGkzVcbpU7LSluTR09uywVDc=
=I7B9
-----END PGP SIGNATURE-----


Follow ups

References