How Can i create Windows Machine on AWS with 1 GB EBS - windows

Windows default EBS size is 30 GB. We can take snapshot and create another volume but that is to increase size. Moreover my intention is to keep only one partition with 1 GB volume.
Any tricks here ?

As far as I'm aware there are no real tricks there.
I once tried reducing the Linux root partition size, however that VM wouldn't start up because the disk was too small and couldn't copy the snapshot to your disk.
You could check if Windows Nano suits your needs and this one comes with 8 GB.
The other option would be building your own image/AMI. However, looking at the Windows Server 2012/2016 system requirements they say you need a 60-GB system-partition. So 30 GB is already quite small and I'm sure you are unable to install any modern full Windows on a 1 GB drive. This isn't Windows 95 anymore...

Related

Under Windows [Redis 64Bit] whether can be used in a production environment?

I use this version on my dev environment : Redis-64 .
And I want to know if this version is suitable for the production environment?
If can use, then compared with under Linux, what need to be pay attention to?
Since version 3.0.3 the windows port developers abandoned the dlmalloc and began to use jemalloc as memory allocator. And the port was actually considered for production usage. The 3.0.500 build is approved for production by ms developers (see here).
And there is some kind of hell so how they bypassed the unix fork to save data to disk. Microsoft developers port call it point-in-time heap snapshot. And this is the most controversial part when used in production:
Redis under windows may need up to 3 times more memory than you need in linux version. This behavior is considered normal, because swap file in the windows can easily be up to 3 times larger than the actual amount of RAM.
I think this is acceptable only if the use Redis as LRU cache or not to save data to disk at all.
At least Redis under windows is absolutely susceptible if you Redis node use lot of memory. For example - we try to use Redis for windows (v2.8, v3.0.3, v3.0.5) on server with 512 gb of memory with 2 SSD drives (each 256 gb in raid 0) used as system disk. No any limits on windows swap file. Our test emulates our production - lots of writes and saves with RDB with utilization ~60-70% of memory. And here is was lots of hands up behaviours then this node try to save snapshots - memory consumption jumps, connection freeze during saving. Such behaviour never happens undex linux on same hardware.

VMWare Memory Clear

I have installed a VMWare 7.1 workstation for ubuntu 12.01. After using vmware for a month the folder contains too many of .vmdk files. Its costing the partition memory low.
1) How to free the memory that occupied by the vmware temporary memory.
2) What can i do to the .VMDK files - too many files are there is in the source path.
1)Go to the snapshot manager and delete the old snap shot. It will give some free memory space
2)Go to the Setting windows and choose snapshot and set the snap shot setting when power off.

Boot a native OS on a hard disk as a virtual machine

I'm searching for a solution to boot a native OS on a hard disk as a virtual machine.
It's like what VMware Fusion did on a Mac which boots Windows in Boot Camp as a virtual machine.
In detail, I have Windows installed on /dev/sda2 and Ubuntu 11.10 on /dev/sda5.
Is there anyway to use a virtual machine software to boot the Windows on /dev/sda2 as a virtual machine while I'm using Ubuntu?
Yes, I did this long ago following this guide:
https://lists.ubuntu.com/archives/ubuntu-us-nm/2008-February/000521.html
of course, always backup and be careful!
Essentially:
Used a USB 3.5 HD enclosure and connect the XP drive to it.
If the drive was shutdown uncleanly you may need to manually
mount it with the following command.
sudo mount ntfs-3g /dev/whereyourdriveis /mount/somemountpoint -o
force
Once the drive is mounted under linux contiunue to step 2.
Launch VMWare.
Go to File -> New -> New Virtual Machine.
Select "Custom"
Select Next
Select your operating system (i.e. Win XP)
Select Next
Give it a name like "WindowsXP"
Select Next
Specify processor One or Two
Select Next
Choose public or private (on a single-user machine this doesn't
matter)
Select Next
Select the memory to devote to the virtual machine. 512 MB is a
pretty useful number.
Select your network connection
Select Next.
Leave SCSI set to BusLogic
Select Next
Select Use Physical Disk
Select Next
Select Use Entire Drive
Select Next
Specify the place to save the VM
At this point you're done Select Power On to boot the Physical drive
in VMWare!
More Info: I should add, I have successfully done this, but I also had success using this method years even years before. So there are at least two known and tested ways for accomplishing this that I can tell you.
You can do this via VirtualBox raw disk access.
(http://www.virtualbox.org/manual/ch09.html)
It basically creates a "virtual" disk file that points to the actual partition and loads it as a disk drive in the VM. I've installed Linux guest in VB on Windows host in such a way, and the installation can boot from the VM or by itself.
As answered, this also can be done in VirtualBox, this is the way that works for me
Always, make sure that you are running as Administrator(Windows) or Sudo(Linux), any changes that you do will write to the REAL disk, so be carefull
In Windows
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename "E:\virtualbox\linuxhd.vmdk" -rawdisk "\\.\PhysicalDrive1"
RAW host disk access VMDK file E:\virtualbox\linuxhd.vmdk created successfully.
In Linux
$ VBoxManage internalcommands createrawvmdk -filename "~/linuxhd.vmdk" -rawdisk "/dev/sda"
It will create a file with something around 1kb that is a link to the physical hard drive.
Then create a Virtual Machine as ever you do.
If you want to map only a partition
At Windows
\\.\Physicaldrive1 -partitions 1
(Disk start with 0, partitions
with 1)
At Linux (Much more intuitive)
/dev/sda1
/dev/sda2
etc.
Eventually you can get resolution issues
Eventually you can get resolution issues even after install vboxadditions, in my experience the problem is your /etc/X11/xorg.conf it is configured to your specific real hardware specs(I have a offboard GPU for example), least in my case I solve it simply removing this file (xorg auto configure at boot, only will not work if you set some specific setting), so run:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.original && sudo rm /etc/X11/xorg.conf
Reference
http://www.virtualbox.org/manual/ch09.html#rawdisk
https://forums.virtualbox.org/viewtopic.php?f=6&t=36694
https://romaimperator.com/?p=29

Recover windows seven

I started on Ubuntu and have had the first considerable error. I'm looking for help.
I have an HP Pavilion dv6 i7. I had installed windows 7 and I decided to also install Ubuntu using a USB.
My first attempt was to install Ubuntu 11.10 following the instructions of the official Ubuntu website. When loading the pendrive, my PC stucks at the main menu of ubuntu, so after searching, I found could be due to a problem with my AMD Radeon graphic card (or not), but I decided to change.
Then I used Ubuntu 10.4. This could happen from the start menu i get into Ubuntu live. There I decided to install it because I liked it and I need to develope with Google TV (in windows is not posible).
And I fail in the partitions section. I tried to follow the instructions on this page:
http://hadesbego.blogspot.com/2010/08/instalando-linux-en-hp-pavilion-dv6.html
but there were things that changed a bit so I improvised. I took the windows partition of 700000MB and went to 600000Mb leaving 100GB free to install Linux there. The error was to set it to ext3 (it was ntfs). I thought the new 100gb partition will be set to ext3, and windows partition will stuck at ntfs system, but not.
Total I ran out to boot windows, and above I can not install ubuntu on the 100GB free.
Someone thinks I can help. Is there any easy way to convert back to ntfs windows and not lose data?
Thank you very much.
You should be able to hit F11 when the machine is booting up and go to the HP recovery application. This should let you reset to factory default.
You should definitely be able to install Ubuntu on the new 100GB partition as well. Just make sure you choose the right partition to install it on.
You will need to recover using recovery CD/DVD's. You must have been using the install gparted utility in Linux to "re-partition" your drive. You scrubbed some boot files.
If you successfully recover using the recovery media you can use Disk Management in Win 7 to shrink or extend your volume. In your case you would shrink it down 100Gb's and then when installing Linux gparted will see that available 100 GB and install there while Windows will still run.
Also, you should probably be running ext4 fs, not ext3. you would only want ext3 for compatibility reasons.

How much space should I leave for my Windows 7 partition?

I'm setting up a complete .NET development environment on my Macbook Pro.
I'm using Visual Studio 08 team suite, SQL server 2008, MS Office and other tools (like FinalBuilder, RegexBuddy, Beyond Compare).
How big should my windows 7 (beta currently) partition be? Will 100GB be enough?
NOTE: I wasn't sure if this was programming related enough for SO, so I'll just let the community decide if this question is relevant.
100 GB should be more than enough for all those apps. I've installed win7 in a virtual machine and the virtual HDD ended up with a size of 7GB (that's only the OS of course). Trying the same with Vista, for example, uses about 25GB. It seems they're making it lighter.
You described my laptop. 100 GB would leave approx. 40GB for Users directory.
100 GB will be plenty. You'll have OS, apps, but no music, pics, videos. 100GB is probably overkill, especially if you can resize it if needed.
I have Windows 7 installed on a laptop with 2 100 Gb hard drives.
Currently I'm using 18 Gb and that's with most of the primary stuff installed, but not Visual Studio or SQL, but those probably won't use more than 10 Gb (I reckon). I do have Virtual XP Mode installed which is probably quite large too.
The Windows folder is about 9.3 Gb
The User folder is 3.2 Gb (but I have some large files on my desktop)
The Program Files is 3.0 Gb
The rest of the files on the OS-drive are mostly driver files which you don't have to leave on the drive itself.
So 100 gb would probably even be an overkill, but does give you some headroom!
Windows7 is going to be a little bit smaller than Windows Vista. So if you create partition big enough for Windows Vista, it will be perfect for Windows7.
See Engineering7 blog for more information about disk space in Windows7.
I would give as much as you could to Windows 7, since it will probably become your primary OS. I find that I rarely use my OSX partition, except for cracking WEP.
100 GB is barely enough. You can install Windows 7 and the mentioned programs along with lot of other stuff, but once you get to have some lots of trash there and there plus you happen to download movies and such it gets cumbersome.
Unless you're relying on some other device for things other than those tools, I recommend a larger space allocation, of at least 150 GB

Resources