Closed boldingcape closed 1 year ago
Need to ensure the image will request for IP address when starting up
On subsequent start up, need to figure out how to check is the lease duration is over before requesting for new ip address.
In the base image, can use static ip to ensure the default ip won't change. In the clone image based off base image, can use "dhclient" to query dhcp server to lease ip address. To reduce the chance of ip conflict. Before using "dhclient", need to use "dhclient -r" to release the existing leased ip. Can use "vboxmanage dhcpserver modify" command to modify the setting of dhcpserver. Current setting sample of dhcpserver is: vboxmanage dhcpserver modify --interface vboxnet0 --min-lease-time=600 --default-lease-time=28800 --max-lease-time=86400
Compared the performance implication between:
Using fresh VM instance
Need to use CentOS kickstart to automate the OS installation. Need environment preparation script to ensure the environment is ready.
- Require more time to get each VM to ready state
- Can easily setup the VM for usage
Clone from existing VM instance
Disable network service on base image Need to ensure the VM will request for new IP leased on first start
- Require more planning on how to get it to work
Following approach 2, should be fine as of now.
Planning for re-configuring VirtualBox Guest machine