/srv/irclogs.ubuntu.com/2014/03/26/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
smoseralexpilotti, around ?20:01
alexpilottismoser: hey!20:01
smoserwould you think it possible to install windows via :20:04
smoser mkfs.ntfs(some.disk)20:04
smoser mount some.disk20:04
smoser tar -C moutpoint -Sxvzf my-windows-tarfile.tar.gz20:04
smoser fixup_windows(mountpoint)20:04
smoser reboot 20:04
alexpilottiif my-windows-tarfile.tar.gz is a preinstalled copy of WIndows, sure20:05
alexpilottiit's no different then ghosting a machine20:06
smoserand fixup_windows() is some amount of things that have to be done20:06
smoserright.20:06
alexpilottinot even20:06
alexpilottibut20:06
alexpilottiyou'll have to consider that you need to expand the file system20:06
alexpilottiI mean, if your initial image is say, 15 GB20:06
alexpilottiand your target partition is 20GB20:07
smoserright. but that could be done in fixup_windows20:07
smoserright ?20:07
alexpilottiyep, I though you meant to fix only the MBR / UEFI boot, etc20:08
smoserwell, whatever amount of "fix" required20:08
alexpilottiif it's an image with cloudbase-init installed you don't even have to care, as partitions get resized automatically on boot20:08
smoserbut those are filesystem images20:09
smosercould you do the same wtih tar image ?20:09
alexpilottican you give some context about where this could be needed?20:09
smosermainly just wondering if i could install windows that way.20:17
smoserdoesnt have to support a bunch of smart options, just get installed and boot.20:17
cloud-init-n00bhello everyone20:29
cloud-init-n00bi've been trying to get familiar with cloud-init for modifying image installs on openstack20:30
cloud-init-n00bbut i'm having a really hard time getting it to work20:30
cloud-init-n00band google is not being too helpful20:30
cloud-init-n00bi'm trying to do something simple first20:30
cloud-init-n00bbasically create just a user and verify that it is actually being created20:31
cloud-init-n00b#cloud-config  users:   - default   - name: stack     plain_text_passwd: 'testPass'     lock_passwd: False     sudo: ["ALL=(ALL) NOPASSWD:ALL\nDefaults:stack !requiretty"]     shell: /bin/bash20:31
cloud-init-n00bwhoa bad formatting20:31
smoseralexpilotti, thanks for your input.20:32
cloud-init-n00bhttp://pastebin.com/Nd7H6aHS20:32
cloud-init-n00bthat is what my simple config looks like20:32
cloud-init-n00bany chance someone could give me a hand20:32
cloud-init-n00bi'm not sure what it is i'm missing20:32
cloud-init-n00b:/20:32
alexpilottismoser: sorry, got interrupted20:33
alexpilottismoser: to be sure, what do you mean with tar image?20:33
alexpilottismoser: an OS installer image, like an ISO?20:34
smosermount -t ntfs /dev/my-windows-partition /mnt20:34
smosertar -C /mnt -Scpzf my-windows-tarball.tar.gz20:34
smoserumount /mnt20:35
alexpilottigot it20:35
smosercloud-init-n00b, what you have there doesn't look completely unreasonable20:35
smoserwith a recent cloud-init, you can poke around quicker by running the user-groups module manuall20:36
alexpilottito be compliant with MSFT support, you need to sysprep the machine20:36
smosersudo cloud-init single --frequency=always --name=user-groups20:36
smoserand then printf debugging that way (or looking at /var/log/cloud-init.log)20:36
alexpilottibut for a brutal "let's get it running" it works20:36
cloud-init-n00bsmoser, if you have any links on how to run that module manually 20:37
alexpilottiit's no different than ghosting a physical machine in the end20:37
cloud-init-n00bi'd be very thankful20:37
cloud-init-n00bdon't mind reading at all :)20:37
smosersysprep would be ok. especially if it can be rebooted into sysprep and then rebooted automatically from there.20:37
smosercloud-init-n00b, look there ^20:37
smosersudo cloud-init single --frequency=always --name=user-groups20:37
alexpilottithe tricky part is that the only way to do that would be to inhect in the registry a script that would run sysprep on the next boot20:38
alexpilottiwhile normally you'd run the machine, sysprep, shutdown, copy the image20:38
alexpilottiif you can control the machine this way, it's fine20:39
alexpilottis/inhect/inject/20:39
cloud-init-n00bsmoser i'm afraid i did not understand your reference, where is it that you advised me to look into (thanks)20:41
smosercloud-init-n00b: run: sudo cloud-init single --frequency=always --name=user-groups20:44
smoserthat will re-run the user-groups m odule20:44
smoserthat would read that data you gave20:44
smoserand then it should log some things to /var/log/cloud-init.log20:45
cloud-init-n00bgot it. i'll give it a run then. Thanks!20:45
cloud-init-n00bi'm getting an error saying :20:47
cloud-init-n00bbad command single. use one of ('start', 'start-local')20:47

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!