All of lore.kernel.org
 help / color / mirror / Atom feed
* How to create a guest os from existing disk image file with virt-install
@ 2010-07-19  5:45 Rajiv Rajaian
       [not found] ` <AANLkTiniCUwt7RHX9nPxfdRYss-SSGJiPvrEtG8nk7l_-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Rajiv Rajaian @ 2010-07-19  5:45 UTC (permalink / raw)
  To: kvm-u79uwXL29TY76Z2rM5mHXA, libvirt-users-H+wXaHxf7aLQT0dZR+AlfA


[-- Attachment #1.1: Type: text/plain, Size: 3100 bytes --]

Hi
I have configured KVM with Fedora Core 13 by enabling the KVM virtualization
option while installing OS.
I have successfully created the guest OS by using the virt-install API

/usr/sbin/virt-install --name centos5 --ram 512 --disk
path=/var/lib/libvirt/images/
centos.img,size=5 --network network:default --accelerate --vnc -c
/tmp/CentOS-5.3-i386-bin-DVD.iso

Os installed successfully and after rebooting am able to login to the guest
OS using the virt-viewer command using vnc viewer ..It shows

Booting from Hard Disk...
GRUB Loading stage2.....

But the guest os is not booted

I want to the create the guest os from existing configured disk
/var/lib/libvirt/images/centos.img.. What modifications should be done with
my configuration file ??
Pleas help me to solve this.

[root@kvmcluster ~]# virsh dumpxml centos5
<domain type='qemu' id='2'>
  <name>centos5</name>
  <uuid>cabfad09-ff8b-e1ca-051a-6729e301f6a1</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='i686' machine='fedora-13'>hvm</type>
    <boot dev='cdrom'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/centos.img'/>
      <target dev='hda' bus='ide'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu'/>
      <source file='/tmp/CentOS-5.3-i386-bin-DVD.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:bf:32:c2'/>
      <source network='default'/>
      <target dev='vnet0'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
    </video>
  </devices>
  <seclabel type='dynamic' model='selinux'>
    <label>system_u:system_r:svirt_t:s0:c370,c413</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c370,c413</imagelabel>
  </seclabel>
</domain>

[-- Attachment #1.2: Type: text/html, Size: 4533 bytes --]

[-- Attachment #2: Type: text/plain, Size: 182 bytes --]

_______________________________________________
libvirt-users mailing list
libvirt-users-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
https://www.redhat.com/mailman/listinfo/libvirt-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to create a guest os from existing disk image file with virt-install
       [not found] ` <AANLkTiniCUwt7RHX9nPxfdRYss-SSGJiPvrEtG8nk7l_-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-07-19 17:45   ` Carla Araujo
  2010-07-22  4:35     ` [libvirt-users] " Rajiv Rajaian
  0 siblings, 1 reply; 3+ messages in thread
From: Carla Araujo @ 2010-07-19 17:45 UTC (permalink / raw)
  To: Rajiv Rajaian
  Cc: libvirt-users-H+wXaHxf7aLQT0dZR+AlfA, kvm-u79uwXL29TY76Z2rM5mHXA


[-- Attachment #1.1: Type: text/plain, Size: 531 bytes --]

Hi Rajiv

On Mon, Jul 19, 2010 at 02:45, Rajiv Rajaian <rajiv.care-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> Hi
> I want to the create the guest os from existing configured disk
> /var/lib/libvirt/images/centos.img.. What modifications should be done with
> my configuration file ??
>

You can import the *.img* executing virt-install with this parameters (this
is just an example):
virt-install --name NewVM --ram 512 --vcpus 1 --disk path=/var/lib/libvirt
/images/centos.img *--import* --noautoconsole --force

-- Carla

[-- Attachment #1.2: Type: text/html, Size: 2206 bytes --]

[-- Attachment #2: Type: text/plain, Size: 182 bytes --]

_______________________________________________
libvirt-users mailing list
libvirt-users-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
https://www.redhat.com/mailman/listinfo/libvirt-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [libvirt-users] How to create a guest os from existing disk image file with virt-install
  2010-07-19 17:45   ` Carla Araujo
@ 2010-07-22  4:35     ` Rajiv Rajaian
  0 siblings, 0 replies; 3+ messages in thread
From: Rajiv Rajaian @ 2010-07-22  4:35 UTC (permalink / raw)
  To: Carla Araujo; +Cc: kvm, libvirt-users

Hi Carla Araujo

I have tried the option with --import still the guest os is not
booting.. If any body tried this option please help me


On 7/19/10, Carla Araujo <carla.asouza@gmail.com> wrote:
> Hi Rajiv
>
> On Mon, Jul 19, 2010 at 02:45, Rajiv Rajaian <rajiv.care@gmail.com> wrote:
>
>> Hi
>> I want to the create the guest os from existing configured disk
>> /var/lib/libvirt/images/centos.img.. What modifications should be done
>> with
>> my configuration file ??
>>
>
> You can import the *.img* executing virt-install with this parameters (this
> is just an example):
> virt-install --name NewVM --ram 512 --vcpus 1 --disk path=/var/lib/libvirt
> /images/centos.img *--import* --noautoconsole --force
>
> -- Carla
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-22  4:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19  5:45 How to create a guest os from existing disk image file with virt-install Rajiv Rajaian
     [not found] ` <AANLkTiniCUwt7RHX9nPxfdRYss-SSGJiPvrEtG8nk7l_-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-19 17:45   ` Carla Araujo
2010-07-22  4:35     ` [libvirt-users] " Rajiv Rajaian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.