Hi Norvin
Yes, for some reason Ubuntu uses eth0/private interface as default GW.
I was able to change default GW by creating a new script
/etc/init.d/vcl_set_default_route and registering it with 'update-rc.d
vcl_set_default_route defaults'
Here is the script
#!/bin/sh
### BEGIN INIT INFO
# Provides: vcl_set_default_route
# Required-Start: $network
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Short-Description: Run /etc/init.d/vcl_post_load if it exist
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh
. /lib/lsb/init-functions
case "$1" in
start)
/sbin/route del default
/sbin/route add default gw <IPADDRESS_ON_PUBLIC_NET <replace>
;;
*)
echo "Usage: $0 start" >&2
exit 3
;;
esac
On Apr 11, 2013, at 8:01 , "Basilio, Norvin" <[email protected]> wrote:
> Thanks for replying,
> I was wondering about the sections where I'm supposed to ensure the HWADDRESS
> is not set. Also I'm having an odd issue where the image is captured fine but
> the default GW is set to the private gateway address vs the Public Gateway
> address. Right now my nics are setup where eth0 is private and eth1 is
> public. Can you tell me where the best place is to change the Route. Ie:
> should I change the code or use the post_load script.
>
>
> Norvin Basilio
> Email: [email protected]
>
> -----Original Message-----
> From: Aaron Peeler [mailto:[email protected]]
> Sent: Tuesday, April 9, 2013 10:14 AM
> To: [email protected]
> Subject: Re: Ubuntu 12.04 with VCL 2.3.0
>
> Hi Norvin,
>
> It would be the same as for CentOS or Redhat.
> https://cwiki.apache.org/confluence/display/VCL/Create+a+Linux+Base+Image
>
> - on target node is installed
> - copy the public ssh key to root's authorized_keys on the target node
> - make sure target node is assigned to a hypervisor and in available state.
>
> - run vcld --setup
> select options,
> 2. VCL Image State Module
> 1. Capture Base Image
> enter user that will be the owner of the image, and hostname of target node
> to be captured Select the OS to be captured:
> should be listed as 2.Ubuntu (VMware)
> enter the architecture
> sysprep =no
> enter a name for the image
>
>
> Aaron
>
> On Tue, Apr 9, 2013 at 8:39 AM, Basilio, Norvin <[email protected]> wrote:
>> Hell All,
>>
>> Does anyone have a list of steps they followed to prep an Ubuntu Base
>> image for capture?
>>
>> Norvin Basilio
>> Email: [email protected]
>>
>>
>>
>
>
>
> --
> Aaron Peeler
> Program Manager
> Virtual Computing Lab
> NC State University
>
> All electronic mail messages in connection with State business which are sent
> to or received by this account are subject to the NC Public Records Law and
> may be disclosed to third parties.
>
>
> --
> BEGIN-ANTISPAM-VOTING-LINKS
> ------------------------------------------------------
>
> NOTE: This message was trained as non-spam. If this is wrong, please correct
> the training as soon as possible.
>
> Teach CanIt if this mail (ID 02JlOeHRX) is spam:
> Spam:
> https://www.spamtrap.odu.edu/canit/b.php?i=02JlOeHRX&m=7d8945cfb59e&t=20130409&c=s
> Not spam:
> https://www.spamtrap.odu.edu/canit/b.php?i=02JlOeHRX&m=7d8945cfb59e&t=20130409&c=n
> Forget vote:
> https://www.spamtrap.odu.edu/canit/b.php?i=02JlOeHRX&m=7d8945cfb59e&t=20130409&c=f
> ------------------------------------------------------
> END-ANTISPAM-VOTING-LINKS
>
--
Thank you,
Dmitri Chebotarov
VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175 | Fax: (703) 993-3404