Landis Vinchattle An aggregation.

March 31, 2015

VM System With VGA Pass-Through

Filed under: Links,Linux,Software,Uncategorized,Virtualization — Tags: , — Landis V @ 12:05 am

Hardware hangup note for Ctrl+C to get past.

Debain Wheezy network installation freezes after trying to Detect Hardware
byu/SpaceMagnet indebian

Configured LVM environment with /home, /usr/, and /var on spinning platter drive.

Configured an IP reservation on my DHCP server, though I may change this to a true static address at some point.

Instructions for linux-headers and virtualbox setup:  https://wiki.debian.org/VirtualBox

Downloaded the extension pack with wget http://download.virtualbox.org/virtualbox/4.1.36/Oracle_VM_VirtualBox_Extension_Pack-4.1.36-97684.vbox-extpack (NOTE:  you will need to download the appropriate version for your installed VirtualBox version.  Run vboxmanage -v and compare the output version to the versions available at https://www.virtualbox.org/wiki/Downloads; it apears you will need to match at least Major.Minor version numbers) and installed using instructions at https://www.virtualbox.org/manual/ch08.html#vboxmanage-extpack.

Created a separate logical volume on my SSD drive.  Dedicated it to the Win10 guest (see https://wiki.archlinux.org/index.php/VirtualBox#Create_a_VM_configuration_to_boot_from_the_physical_drive).

Created a VM from the CLI.  Had to actually go into the BIOS and enable AMD-V on my Gigabyte 78LMT-USB3 as it was disabled.  Could not get the version of VirtualBox included with the Debian distribution to give anything except the “Your PC needs to restart” 0x0000005D error, even when trying to force the NX bit using info for setting CMPXCHG16B as found at http://www.makeuseof.com/tag/try-windows-10-youre-running-linux/.  Ultimately ended up loosely following instructions from http://www.admin-magazine.com/Articles/Server-Virtualization-with-VirtualBox but substituting “wheezy contrib” for “lucid contrib” early in the instructions, and substituting 4.3 for 4.1, then running a “modifyvm” and setting ostype to Windows81_64.  Once this was done, I was able to start the install process.  Yay.

Had to modify the e1000g0 adapter config from http://www.perkin.org.uk/posts/create-virtualbox-vm-from-the-command-line.html to instead be “eth0” since I’m on a linux box (also had to remove it before re-adding, got an error when even attempting to start the machine).

Mouse pointer was batty, like it was scaled.  Ended up downloading the appropriate VirtualBox guest additions to the host machine, mounting them in the DVD drive, selecting the AMD64 file, bringing up properties and setting to compatibility mode Windows 8 (can’t seem to locate where I found this), and was able to install.  Pointer synced, system is on the web.

Second Steps – Debian LXC Guest for KDE

Debian 7.8

#From https://wiki.debian.org/LXC - loosely

apt-get install lxc
apt-get install bridge-utils libvirt-bin debootstrap

# Failed with:
# Failed to fetch http://security.debian.org/pool/updates/main/libx/libxml2/libxml2-utils_2.8.0+dfsg1-7+wheezy3_amd64.deb 404 Not Found [IP: 128.31.0.63 80]
# E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

apt-get
apt-get install bridge-utils libvirt-bin debootstrap

# Successful this time

echo -e "cgroup\t/sys/fs/cgroup\tcgroup\tdefaults\t0\t0" >>/etc/fstab
mount /sys/fs/cgroup
mount

# Confirmed that cgroup is mounted

lxc-checkconfig

# All show enabled
# Check out http://www.turnkeylinux.org/blog/announcing-turnkey-lxc, maybe add
# Turnkey template for some other functionality on this box
# Switched tracks and decided to try out Docker
# From http://docs.docker.com/installation/debian/#debian-wheezystable-7x-64-bit

echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -t wheezy-backports linux-image-amd64
reboot

# SSH'ed back into machine, verify new kernel

uname -a
wget https://get.docker.com/
chmod +x index.html
gpasswd -a my-account docker
service docker restart

# Service apparently did not restart, so had to start it again manually

service docker start

# Now as non-root
# Determined the following from http://www.syncano.com/getting-started-docker/

docker pull ubuntu:14.10
docker images

# Lists the newly pulled image; attempted to run it.
docker run -t ubuntu:14.10

# At this point, continuously encountered an error similar to the following:
# FATA[0034] Error response from daemon: Cannot start container (container UUID here): [8] System error: write /sys/fs/cgroup/docker/(container UUID here)/cgroup.procs: no space left on device
# There is definitely space left on the device, I do not appear to be lacking inodes as others seem to have encountered similarly, and permissions look OK.
# Started to install strace to troubleshoot further... but I need to get an accounting system back online.
# Switched to a VirtualBox KDE environment plan.  I guess I can always kill it later :)

lvm lvcreate -L 10g -n kmm
wget http://peppermintos.com/iso/Peppermint-5-20140623-amd64.iso
vboxmanage createvm --name kmm --register
vboxmanage modifyvm kmm --memory 1024 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0
VBoxManage internalcommands createrawvmdk -filename ~/VirtualBox\ VMs/kmm/kmmSSD.vmdk -rawdisk /dev/amdfx/kmm
vboxmanage storagectl kmm --name "SATA Controller" --add sata
vboxmanage storageattach kmm --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium ~/VirtualBox\ VMs/kmm/kmmSSD.vmdk
vboxmanage storageattach kmm --storagectl "SATA Controller" --port 1 --device 0 --type dvddrive --medium ./Peppermint-5-20140623-amd64.iso
vboxmanage modifyvm kmm --ostype Ubuntu_64 --vrde on --vrdeport 22888
vboxmanage startvm kmm --type headless

# Able to RDP in and started Peppermint install process.

March 30, 2015

How To Use Vagrant To Create Small Virtual Test Lab on a Linux / OS X / MS-Windows

Filed under: Configuration Management,Links,Linux,Networking — Tags: , — Landis V @ 8:26 pm

http://www.cyberciti.biz/cloud-computing/use-vagrant-to-create-small-virtual-lab-on-linux-osx/

Good step through on a Vagrant setup.

March 28, 2015

KLAX – Lumberjack – Klecker Knives

Filed under: Camping,Links,To Buy — Landis V @ 11:42 am

http://www.kleckerknives.com/klax-lumberjack/

One of these guys would be neat, no doubt about it!

March 13, 2015

ARDUINO SOLAR CHARGE CONTROLLER (Version-1)

Filed under: Electronics,Energy,Fabrication,Hobby Engineering,Links,Projects,Wireless — Tags: — Landis V @ 9:39 pm

http://www.instructables.com/id/ARDUINO-SOLAR-CHARGE-CONTROLLER-PWM/

March 11, 2015

Interface Configuration | ifupdown2 | Webinar

Filed under: Links,Linux — Landis V @ 11:18 pm

http://go.cumulusnetworks.com/ifupdown

Saw a tweet on this, looked intriguing.  Will have to check it out.

March 7, 2015

The reality of government

Filed under: Business,Economics,Government,Philosophy,Politics,Rights — Landis V @ 2:38 pm

5TruthsYouCannotDisagreeWith

I saw this posted recently, along with a very poor rebuttal which was wholly dependent upon the premise that, effectively, everything was dependent upon big government.  I see things quite differently.  Some of these may appear out of context as they were in response to the rebuttal.

tl;dr You can only perpetuate a false reality as long as someone else will tolerate it.

1. This depends upon the false premise that government is good, growth of government is better, and business existence and growth is dependent upon the same from government. The legislation creates more paperwork and hassles that require staff to deal with, so rather than hiring productive staff to perform relevant work, paper pushers are hired instead. The new legislation also creates non-essential government jobs, raising taxes across the board. Like everyone, the new government hires don’t want to see their (nonessential) jobs disappear, so they are less likely to encourage fiscally responsible government. The bureaucracy creates new departments which are encouraged to spend their budget or lose it, and must demonstrate their necessity, both of which lead to expansion of government and increase in taxation. Businesses used to provide good health insurance as an incentive to draw in the best employees, but now go with whatever they can do cheapest, which ironically costs significantly more and provides fewer benefits than good insurance used to. Business is encouraged to transfer money and jobs into offshore investments to protect against taking of earnings due to higher tax rates.

2. People don’t pay into a job market. Skilled, incentivized, dependable people find work quickly if they wish to, or create their own businesses. People lacking these traits often have fewer job choices, and government growth perpetuates this (except through the creation of government jobs). Businesses (and government, but not in a good way) create jobs and the resultant job market. Businesses continues to decide the ROI or value proposition for tasks, and chooses either to automate them out of existence or to not do them at all because there is a net loss or insignificant return. Automation likely creates a smaller number of high skill jobs as someone develops the process and/or equipment, though once created there is likely limited ongoing revenue once the process is complete, which may not even sustain the few jobs that did result. In some cases, pro government legislators and special interests are compelled to regulate the automation process, creating more government jobs, red tape, and opportunity to steer money to lobby groups… see #1. If the business decides there is insufficient value to pay more or automate the process, the jobs are not only lost, but so is whatever value those undertakings may have generated, compounded over time. That is to say, not only is the initial job lost, any revenue, discovery, or increase in efficiency that may have resulted in further jobs is also lost. Alternavely, the job may be outsourced, providing the potential for another region with less strict regulation to own the jobs coming from the automation, learn and increase efficiency within the process, and realize the time-compounded benefits thereof.

3. The government cannot give what it does not take from someone else, period. The government’s right to exist is governed by, and directly proportionately to, the extent that citizens will subjugate their own rights and free will to such a government. A proper government lends itself to as minimal an existence as possible to support the majority requirement, while self-limiting its taking in support of that which is not required, but simply requested. These resultant application of these two considerations provides the charter of the government. Defense and limited safety net are the correct province of the government in this case, not wealth equalization which is the concern of this statement. Both of these are excessive in the current case. Defense spending, while economically stimulating and contributory to job stability and growth, is proportionately inconsistent to the proper charter of this government. While we realize the intellectual gains and technological advancement from much of this spending, it remains excessive, even and perhaps especially in consideration of our often unwanted and seldom thoroughly considered aggressions and interjections towards other nation states. The safety net is the direct consideration of this question, and indeed a limited consideration under the charter. It is of our nature to consider the well-being of those who are unable to provide for themselves, either temporarily or permanently. However, taking more than required – as requested by a minority – and furthering the growth of the government, while also discouraging some form of work or contribution from the individual to the extent feasible, falls well beyond the scope of government and is instead the domain of charity and philanthropic venture.

4. Middle class workers, by definition, are already working, and not receiving – nor entitled to – greater benefit from the government. Creating more money artificially for the same value is inflation, by definition, and is harmful to an economy. See #1 for job creation especially in this case. Increased efficiency with reduced cost provides for greater disposable income regardless of class; greater regulation is not coexistent with greater efficiency. While monetary economics can artificially and arbitrarily imply the value of fiat currency, its worth will trend toward equilibrium with the value of real goods.

5. This statement should actually be phrased “When half the people work for the government, directly or indirectly, and get the idea that their jobs exist only because the other half tolerate it, and when the other half gets the idea that government perpetuates its own furtherance, that is the beginning of the end of any nation.” The government can only stimulate jobs by extricating itself to the greatest extent feasible from the equation. The government does not exist as a safety net for jobs; jobs are the realm of business, and business is furthered by limited government.

March 1, 2015

RRNR quote

Filed under: Uncategorized — Landis V @ 6:17 am

The great lesson for democracies to learn is for the majority to give the minority a full, free opportunity to present their side of the case, and then for the minority, having failed to win a majority to their views, gracefully to submit and to recognize the action as that of the entire organization, and to cheerfully assist in carrying it out, until they can secure its repeal.

Powered by WordPress