RE: Autostart VM on boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I use virt-install to install my vm’s as well, but when I used virt-manager (to install) I ran into that other directory path that you mentioned.

 

To install a para-virt example with virt-install I use something like the following:

virt-install --bridge=xenbr0 --name=machinename --ram=1024 --vcpus=1 --file=/dev/vgmachine/lvmachine --paravirt --location=http://1.1.1.1/pathto/ks -x "ks=http://1.1.1.1/config.cfg" --vnc

 

Below is an example of a Windows VM that I have that is stored in /etc/xen and worked just fine with the symlink method. If you’d like a linux example or a para-virt example just let me know.

 

name = "MachineName"

uuid = "f771623c-acbe-18df-d3a9-e71246c88f2e"

maxmem = 1024

memory = 1024

vcpus = 2

builder = "hvm"

kernel = "/usr/lib/xen/boot/hvmloader"

boot = "c"

pae = 1

acpi = 1

apic = 1

>

>

>

device_model = "/usr/lib64/xen/bin/qemu-dm"

sdl = 0

vnc = 1

vncunused = 1

disk = [ "phy:/dev/vgcomp/lvmachine,hda,w", "file:/root/bartpe.iso,hdb:cdrom,r" ]

vif = [ "mac=00:00:00:00:00:00,bridge=eth0,type=ioemu" ]

serial = "pty"

 


From: Marcel Damásio [mailto:marceldamasio@xxxxxxxxx]
Sent: Friday, June 06, 2008 12:21 PM
To: David Levinger
Cc: fedora-xen@xxxxxxxxxx
Subject: Re: Autostart VM on boot

 

Ok, but I used virt-install to create the VMs, so I don't have a config file.

Trying this solution I found the config files at /var/lib/xend/domains/, all generated by virt-install automatic.

So I created a symlink in /etc/xen/auto, but this didn't work.

Any other ideas?

Could you send me an example of config file machine that works for testing?
I don't know how to create a VM from one.

On Fri, Jun 6, 2008 at 4:13 PM, David Levinger <davidl@xxxxxxxxxxxxxxxxxxx> wrote:

Creating a symlink in /etc/xen/auto that points to the config file of the machine I want to autostart has worked for me in Fedora 8.

 

IE I store my config files in /etc/xen

ln –s /etc/xen/MachineFile /etc/xen/auto/MachineFile

Next time I boot the virtual machine starts right up.

 

d

 


From: fedora-xen-bounces@xxxxxxxxxx [mailto:fedora-xen-bounces@xxxxxxxxxx] On Behalf Of Marcel Damásio
Sent: Friday, June 06, 2008 11:51 AM
To: fedora-xen@xxxxxxxxxx
Subject: Autostart VM on boot

 

Hi,

I'm using Fedora 8 as DOM0.
I created my virtual machines using virt-install.
Now I want to configure them to autostart on DOM0's boot, but I can't.

I tried a lot of solutions, but none worked.

Could somebody help me?

--
Marcel Damásio Moreira
9º período de Ciência da Computação - UFES
(27) 8128-7105
Estagiário do Suporte - DI/UFES




--
Marcel Damásio Moreira
9º período de Ciência da Computação - UFES
(27) 8128-7105
Estagiário do Suporte - DI/UFES

--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux