boldingcape / LazySupport

Streamline working environment setup
0 stars 0 forks source link

Base Guest Virtual Machine Restructure #8

Closed boldingcape closed 1 year ago

boldingcape commented 1 year ago

Planning for re-configuring VirtualBox Guest machine

boldingcape commented 1 year ago

Need to ensure the image will request for IP address when starting up

boldingcape commented 1 year ago

On subsequent start up, need to figure out how to check is the lease duration is over before requesting for new ip address.

boldingcape commented 1 year ago

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

boldingcape commented 1 year ago

Compared the performance implication between:

  1. 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
  2. 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
boldingcape commented 1 year ago

Following approach 2, should be fine as of now.