Jarood, I think just backing up the xml data will be enough for us. Maybe even just using virsh dumpxml, as you suggested, from a cron job running on each of the hypervisors. We’ll do some testing. Thanks.
We can get vm.vidpasswd to work. Thanks again. There are some minor issues
with setting it using chdef. Nodeset works, however. Possibly the node and
group attributes need to be updated?:
[root@drdkvm0003 etc]# chdef -t node -o drdmongogpu vidpassword="99999999"
Error: 'vidpassword' is not a valid attribute name for for an object type of
'node'.
Error: Skipping to the next attribute.
Error: One or more errors occured when attempting to create or modify xCAT
object definitions.
The nodech and nodegrpch work, but the resulting value doesn’t show up when
lsdef is used:
[root@drdkvm0003 etc]# nodech drdmongogpu vm.vidpassword="99999999"
[root@drdkvm0003 etc]# lsdef -t node -o drdmongogpu -i vmnics,vidpassword
Object name: drdmongogpu
vidpassword=
vmnics=br0
The new value can only be viewed with “nodels” or “nodegrpls” (if a group is
used:
[root@drdkvm0003 etc]# nodels drdmongogpu vm.vidpassword
drdmongogpu: 99999999
And when wvid is attempted, the connection succeeds:
+ '[' '!' -z '' -a '!' -z '' ']'
+ myport=5900
+ '[' vnc = vnc ']'
+ let myport=myport-5900
+ export 'VNC_VIA_CMD=/usr/bin/ssh -o BatchMode=yes -f -L "$L":"$H":"$R" "$G"
sleep 20'
+ VNC_VIA_CMD='/usr/bin/ssh -o BatchMode=yes -f -L "$L":"$H":"$R" "$G" sleep 20'
+ flock 200
+ echo -e '99999999\n99999999'
+ vncpasswd /tmp/rvidpass.10787
[root@drdkvm0003 etc]# + sleep 0.4
+ vncviewer drdkvm0104.en.desres.deshaw.com:0 AutoSelect=0 FullColor=1
passwd=/tmp/rvidpass.10787
+ flock -u 200
+ rm /tmp/rvidpass.10787
It also works when used from a console on virt-manager.
Thanks, again.
Goran
From: Jarrod B Johnson [mailto:[email protected]]
Sent: Friday, February 22, 2013 4:11 PM
To: xCAT Users Mailing list
Subject: Re: [xcat-user] Can we run xCAT built KVM VMs independently of xCAT?
Once running, a KVM VM should not care about the state of the MN (since you
aren't using the MN for DHCP/DNS). If a KVM VM shuts down or the hypervisor
reboots, however, the answer gets more complicated.
Assuming you don't need xCAT's auto-storage mounting capability or auto-network
assembly (e.g. you have static mount points or local storage or LVM based VMs),
then all you need is the xml. By default, the only place that persists is in
xCAT DB:
nodels <node> kvm_nodedata.xml
You can also get the libvirt xml by:
ssh <hypervisor>
virsh dumpxml <nodename>
While the VM is running.
I can investigate an option for hypervisor to persist. This is libvirt's
default behavior but there is likely a flag I can use to persist for users that
want.
For fixed passwords, just do:
nodech <vms> vm.vidpassword=passwordhere
You will need to run wvid once after that change to update the VM configuration
to match the table value. After that, vnc direct without asking xCAT for
current password.
[Inactive hide details for "Pocina, Goran" ---02/22/2013 03:36:16 PM---Hi,
Question 1. Can we run VMs built with xCAT without]"Pocina, Goran"
---02/22/2013 03:36:16 PM---Hi, Question 1. Can we run VMs built with xCAT
without the MN being up? (we use hardeths, and ha
From: "Pocina, Goran"
<[email protected]<mailto:[email protected]>>
To: xCAT Users Mailing list
<[email protected]<mailto:[email protected]>>
Date: 02/22/2013 03:36 PM
Subject: [xcat-user] Can we run xCAT built KVM VMs independently of xCAT?
________________________________
Hi,
Question 1. Can we run VMs built with xCAT without the MN being up? (we use
hardeths, and have external LDAP and DNS servers to xCAT.) Is all of the VM
configuration information needed to run the VM resident on the hypervisor?
Also, “wvid” works for us, and opens a vncviewer to our KVM VMs console on
demand. An advantage of “wvid” is that the user need not know the password to
the console, and access to the console can be delegated to specific users using
xCAT’s policy table.
However for our small group, federating access to the VM console is not a big
requirement, but insuring that we do not lose access to our VMs in the event
our xCAT MN is down, is critical. Especially in a scenario where we are
recovering from a site-wide power outage, and need to bring up VMs that run
critical services like ntp, dns, ldap, etc., perhaps before we even can bring
up the xCAT MN.
Question 2. Is there any way for us to assign a fixed password to the vnc
server, and have wvid use that instead? Where would we need to make the code
changes to accomplish this?
Thanks,
Goran------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
xCAT-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: image001.gif>>
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
