메뉴 닫기

openstack kvm 윈도우 user-data 레지스트리 삭제

openstack kvm 윈도우 user-data 레지스트리 삭제

  • Ubuntu 운영체제
  • openstack 버전 queens(다른 버전에서도 문제 없음.)

인스턴스 운영중인 컴퓨트 노드에 패키지 설치


root@compute-node:~# apt install libguestfs-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  attr binutils extlinux fontconfig fontconfig-config fonts-dejavu-core gdisk hfsplus hicolor-icon-theme libatk1.0-0 libatk1.0-data libauthen-sasl-perl libcairo2 libconfig9 libcups2 libdatrie1
  libencode-locale-perl libfile-listing-perl libfont-afm-perl libfontconfig1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libguestfs-hfsplus
  libguestfs-perl libguestfs-reiserfs libguestfs-xfs libguestfs0 libharfbuzz0b libhfsp0 libhivex0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libintl-perl libio-html-perl libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libstring-shellquote-perl libsys-virt-perl
  libthai-data libthai0 libtimedate-perl liburi-perl libwin-hivex-perl libwww-perl libwww-robotrules-perl libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6
  libxinerama1 libxml-parser-perl libxml-xpath-perl libxrandr2 libxrender1 lsscsi lzop mtools reiserfsprogs scrub supermin syslinux syslinux-common
Suggested packages:
  binutils-doc libdigest-hmac-perl libgssapi-perl cups-common librsvg2-common gvfs libguestfs-gfs2 libguestfs-jfs libguestfs-nilfs libguestfs-rescue libguestfs-rsync libguestfs-zfs libdata-dump-perl
  libintl-xs-perl libcrypt-ssleay-perl libauthen-ntlm-perl floppyd
The following NEW packages will be installed:
  attr binutils extlinux fontconfig fontconfig-config fonts-dejavu-core gdisk hfsplus hicolor-icon-theme libatk1.0-0 libatk1.0-data libauthen-sasl-perl libcairo2 libconfig9 libcups2 libdatrie1
  libencode-locale-perl libfile-listing-perl libfont-afm-perl libfontconfig1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libguestfs-hfsplus
  libguestfs-perl libguestfs-reiserfs libguestfs-tools libguestfs-xfs libguestfs0 libharfbuzz0b libhfsp0 libhivex0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libintl-perl libio-html-perl libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libstring-shellquote-perl libsys-virt-perl
  libthai-data libthai0 libtimedate-perl liburi-perl libwin-hivex-perl libwww-perl libwww-robotrules-perl libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6
  libxinerama1 libxml-parser-perl libxml-xpath-perl libxrandr2 libxrender1 lsscsi lzop mtools reiserfsprogs scrub supermin syslinux syslinux-common
0 upgraded, 86 newly installed, 0 to remove and 187 not upgraded.
Need to get 18.4 MB of archives.
After this operation, 80.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]

레지스트리 확인


root@compute-node:/var/lib/nova/instances/d5e92d45-16d8-49e7-a9ad-d521f3cbccde# virt-win-reg disk 'HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init'       
[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\cdc7e9ce-02e3-499d-8d8f-bc4c760056c9]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\cdc7e9ce-02e3-499d-8d8f-bc4c760056c9\Plugins]
"ConfigWinRMCertificateAuthPlugin"=dword:00000001
"ConfigWinRMListenerPlugin"=dword:00000001
"CreateUserPlugin"=dword:00000001
"ExtendVolumesPlugin"=dword:00000002
"LocalScriptsPlugin"=dword:00000001
"NetworkConfigPlugin"=dword:00000001
"SetHostNamePlugin"=dword:00000001
"SetUserPasswordPlugin"=dword:00000001
"SetUserSSHPublicKeysPlugin"=dword:00000001
"UserDataPlugin"=dword:00000001
"WindowsLicensingPlugin"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\d5e92d45-16d8-49e7-a9ad-d521f3cbccde]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\d5e92d45-16d8-49e7-a9ad-d521f3cbccde\Plugins]
"ConfigWinRMCertificateAuthPlugin"=dword:00000001
"ConfigWinRMListenerPlugin"=dword:00000001
"CreateUserPlugin"=dword:00000001
"ExtendVolumesPlugin"=dword:00000002
"LocalScriptsPlugin"=dword:00000001
"NetworkConfigPlugin"=dword:00000001
"SetHostNamePlugin"=dword:00000001
"SetUserPasswordPlugin"=dword:00000001
"SetUserSSHPublicKeysPlugin"=dword:00000001
"UserDataPlugin"=dword:00000001
"WindowsLicensingPlugin"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\fc993cd1-c566-4187-a306-f610a2d727e6]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\fc993cd1-c566-4187-a306-f610a2d727e6\Plugins]
"ConfigWinRMCertificateAuthPlugin"=dword:00000001
"ConfigWinRMListenerPlugin"=dword:00000001
"CreateUserPlugin"=dword:00000001
"ExtendVolumesPlugin"=dword:00000002
"LocalScriptsPlugin"=dword:00000001
"NetworkConfigPlugin"=dword:00000001
"SetHostNamePlugin"=dword:00000001
"SetUserPasswordPlugin"=dword:00000001
"SetUserSSHPublicKeysPlugin"=dword:00000001
"UserDataPlugin"=dword:00000001
"WindowsLicensingPlugin"=dword:00000001
확인

삭제할 레지스트리 정의


root@compute-node:/var/lib/nova/instances/d5e92d45-16d8-49e7-a9ad-d521f3cbccde# cat test.reg 
[-HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\d5e92d45-16d8-49e7-a9ad-d521f3cbccde]
d5e92d45-16d8-49e7-a9ad-d521f3cbccde 인스턴스 레지스트리 위치 확인후 [-{paht\인스턴스 uuid}] 작성

레지스트리 삭제


root@compute-node:/var/lib/nova/instances/d5e92d45-16d8-49e7-a9ad-d521f3cbccde# virt-win-reg --merge disk test.reg

root@compute-node:/var/lib/nova/instances/d5e92d45-16d8-49e7-a9ad-d521f3cbccde# virt-win-reg disk 'HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init'
[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\cdc7e9ce-02e3-499d-8d8f-bc4c760056c9]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\cdc7e9ce-02e3-499d-8d8f-bc4c760056c9\Plugins]
"ConfigWinRMCertificateAuthPlugin"=dword:00000001
"ConfigWinRMListenerPlugin"=dword:00000001
"CreateUserPlugin"=dword:00000001
"ExtendVolumesPlugin"=dword:00000002
"LocalScriptsPlugin"=dword:00000001
"NetworkConfigPlugin"=dword:00000001
"SetHostNamePlugin"=dword:00000001
"SetUserPasswordPlugin"=dword:00000001
"SetUserSSHPublicKeysPlugin"=dword:00000001
"UserDataPlugin"=dword:00000001
"WindowsLicensingPlugin"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\fc993cd1-c566-4187-a306-f610a2d727e6]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\fc993cd1-c566-4187-a306-f610a2d727e6\Plugins]
"ConfigWinRMCertificateAuthPlugin"=dword:00000001
"ConfigWinRMListenerPlugin"=dword:00000001
"CreateUserPlugin"=dword:00000001
"ExtendVolumesPlugin"=dword:00000002
"LocalScriptsPlugin"=dword:00000001
"NetworkConfigPlugin"=dword:00000001
"SetHostNamePlugin"=dword:00000001
"SetUserPasswordPlugin"=dword:00000001
"SetUserSSHPublicKeysPlugin"=dword:00000001
"UserDataPlugin"=dword:00000001
"WindowsLicensingPlugin"=dword:00000001
d5e92d45-16d8-49e7-a9ad-d521f3cbccde 레지스트리 확인
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x