2018年5月24日 星期四

How to remove cloud-init from ubuntu

How to remove cloud init from ubuntu

How to remove cloud init from ubuntu
If you're trying to start a cloud-init based Ubuntu VM with KVM you will suffer long boot times and confusing output on the terminal. If you want to get rid of it you need to remove cloud-init.


echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/; sudo rm -rf /var/lib/cloud/
reboot


感覺起來 ubuntu server 18.04 開機有點慢,cloud-init 似乎是兇手之一,移除掉果然快了不少

沒有留言:

張貼留言